package com.zzx.demo.service.impl;



import com.zzx.api.IDemoService;
import com.zzx.demo.service.IBusiService;
import com.zzx.demo.service.ISnsService;
import com.zzx.demo.service.IUserService;


public class BusiServiceImpl implements IBusiService{
	
	
	
	//@Autowired
	//private IDemoService demoBusiService;
	private IDemoService xfireService;
	
	private IUserService userService;
	private ISnsService snsService;
	
	
	public IUserService getUserService() {
		return userService;
	}

	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	public ISnsService getSnsService() {
		return snsService;
	}

	public void setSnsService(ISnsService snsService) {
		this.snsService = snsService;
	}

	public IDemoService getXfireService() {
		return xfireService;
	}

	public void setXfireService(IDemoService xfireService) {
		this.xfireService = xfireService;
	}

	@Override
	public void getTest() {
		System.err.println("***busi service start*********");
//		try {
//			Client client = new Client(new URL("http://localhost:8081/test-demo/demoService?wsdl"));
//			Object[] res = client.invoke("rtnTest", new Object[]{"busi传值"});
//			//invoke方法有两个参数，一个是接口的方法名，一个是接口方法的参数列表
//			String re = (String) res[0];
//			System.out.println(re);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
		//String str2 = getSnsService().query("aaaaaaa");
		//String str = demoBusiService.rtnTest("aaaaaaaaaaaaaaaaaaaaaaaa");
		//System.err.println("***busi service end*********"+str2);
	}

	@Override
	public void getTwo() {		
		System.err.println("***busi 第二个方法 service start*********");
//		try {
//			Client client = new Client(new URL("http://localhost:8082/test-xfire/TestService?wsdl"));
//			Object[] res = client.invoke("testModel", new Object[]{"aaaaaa传值"});
//			//invoke方法有两个参数，一个是接口的方法名，一个是接口方法的参数列表
//			String re = (String) res[0];
//			System.out.println(re);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
		//String str3 = xfireService.rtnTest("ccccccc");
		//String str2 = getSnsService().query("aaaaaaaaaaaaaaaa");
		String str = getUserService().query("bbbbbbbbbbbbbbbbbbb");
		System.err.println("***busi 第二个方法  service end*********"+str);
		}
	

	}
